ARCH="$(shell uname -s)"

LIB = -lpthread
CFLAGS = 

ifneq ($(ARCH), "Linux")
LIB += -lwsock32
CFLAGS += -DMINGW32
endif

bin = ssdp

$(bin): ssdp.o httpmu.o main.o 
	gcc $^ -o $@ $(LIB)
%.o:%.c
	gcc  -g $(CFLAGS) $^ -std=c99 -c

.PYHONE: clean

clean:
	@rm *.o $(bin) 
